﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DAO;
using DTO;
namespace BUS
{
    public class BUS_TaiKhoan
    {
        public static List<DTO_TaiKhoan> DangNhap(string tentk, string matkhau)
        {
            return DAO_TaiKhoan.DangNhap(tentk, matkhau);
        }
        public static List<DTO_TaiKhoan> SelectTaiKhoan()
        {
            return DAO_TaiKhoan.SelectTaiKhoan();
        }
        public static bool insertTaiKhoan(DTO_TaiKhoan TaiKhoan)
        {
            return DAO_TaiKhoan.insertTaiKhoan(TaiKhoan);
        }
        public static bool updateTaiKhoan(DTO_TaiKhoan TaiKhoan, string TenTK_cu)
        {
            return DAO_TaiKhoan.updateTaiKhoan(TaiKhoan, TenTK_cu);
        }
        public static bool deleteTaiKhoanTheoMaSV(string masv)
        {
            return DAO_TaiKhoan.deleteTaiKhoanTheoMaSV(masv);
        }
        public static bool UpdateTaiKhoan_MatKhau(DTO_TaiKhoan TaiKhoan, string MatKhau_cu)
        {
            return DAO_TaiKhoan.UpdateTaiKhoan_MatKhau(TaiKhoan,MatKhau_cu);
        }
        public static bool InsertDangNhap_VaoTaiKhoan(DTO_TaiKhoan tk)
        {
            return DAO_TaiKhoan.InsertDangNhap_VaoTaiKhoan(tk);
        }
    }
}
